package org.apak.tests;

import junit.framework.TestCase;

import org.apak.db.RepairServiceDAO;
import org.apak.model.ServiceNote;

public class RepairServiceDAOTest extends TestCase {
	private RepairServiceDAO dao;
	protected void setUp() {
		dao = new RepairServiceDAO();
		System.out.println("RepairServiceDAOTest");
	}
	
	public void testUpdateCustomerServiceNote() {
		String note = "updated text of note";
		String result = dao.updateCustomerServiceNote(note, 1, 5);
		assertEquals("ok", result.trim());
	}
	
	public void testGetCustomerServiceNote() {
		ServiceNote note = dao.getCustomerServiceNote(8);
		assertEquals("hehey2", note.getNote().trim());
	}

}
